package at.fhv.framework.events;

import java.util.EventObject;

import javax.media.jai.PlanarImage;

/**
 * The ImageEvent class.
 * 
 * @author Michael Sieber
 */
public class ImageEvent extends EventObject {
	private static final long serialVersionUID = -8719723219215364650L;
	private PlanarImage _image;

	/**
	 * Create a new ImageEvent
	 * 
	 * @param source The object which has fired this event
	 * @param image The changed image
	 */
	public ImageEvent(Object source, PlanarImage image) {
		super(source);
		_image = image;
	}

	/**
	 * Get the image
	 * 
	 * @return The image
	 */
	public PlanarImage getImage() {
		return _image;
	}

}
